import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '../views/Layout/two.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/SingleStroke',
        name: 'SingleStroke',
        component: () => import(/* webpackChunkName: "SingleStroke" */ '../views/SingleStroke.vue'),
    },
    {
        path: '/',
        name: 'Home',
        redirect: '/SingleStroke',
        component: Layout,
        children: [
            {
                path: '/TotalQuantity',
                name: 'SingleStroke',
                component: () => import(/* webpackChunkName: "SingleStroke" */ '../views/T/TotalQuantity.vue'),
            },

            {
                path: '/Bidding',
                component: () => import(/* webpackChunkName: "Bidding" */ '../views/T/Bidding.vue')
            },
            {
                path: '/signing',
                component: () => import(/* webpackChunkName: "signing" */ '../views/T/signing.vue')
            },
            {
                path: '/order',
                component: () => import(/* webpackChunkName: "order" */ '../views/T/order.vue')
            },
            {
                path: '/production',
                component: () => import(/* webpackChunkName: "production" */ '../views/T/production.vue')
            },
            {
                path: '/distribution',
                component: () => import(/* webpackChunkName: "distribution" */ '../views/T/distribution.vue')
            },
            {
                path: '/acceptance',
                component: () => import(/* webpackChunkName: "acceptance" */ '../views/T/acceptance.vue')
            },
            {
                path: '/assurance',
                component: () => import(/* webpackChunkName: "assurance" */ '../views/T/assurance.vue')
            },
        ],
        meta: {
            title: '单笔定位各阶段实时利率'
        },

    },
    // {
    //     path: '/cable',
    //     component: Layout,
    //     children: [
    //         {
    //             path: '/index',
    //             component: () => import(/* webpackChunkName: "cable" */ '../views/S/cable.vue'),
    //             name: 'cable',
    //             meta: { title: 'cable', icon: 'cable', affix: true }
    //         }
    //     ]
    // },
    {
        path: '/cable',
        component: () => import(/* webpackChunkName: "cable" */ '../views/S/cable.vue')
    },
    {
        path: '/Fine',
        name: 'Fine',
        component: () => import(/* webpackChunkName: "Fine" */ '../views/Fine.vue')
    },
    {
        path: '/meter',
        name: 'meter',
        component: () => import(/* webpackChunkName: "meter" */ '../views/S/meter.vue')
    },
    {
        path: '/other',
        name: 'Other',
        component: () => import(/* webpackChunkName: "Other" */ '../views/S/Other.vue')
    },
    // resistor
    {
        path: '/resistor',
        name: 'resistor',
        component: () => import(/* webpackChunkName: "resistor" */ '../views/S/resistor.vue')
    },
    {
        path: '/tower',
        name: 'tower',
        component: () => import(/* webpackChunkName: "tower" */ '../views/S/tower.vue')
    },

    {
        path: '/transformer',
        name: 'transformer',
        component: () => import(/* webpackChunkName: "transformer" */ '../views/S/transformer.vue')
    },
    {
        path: '/demo',
        name: 'demo',
        component: () => import(/* webpackChunkName: "demo" */ '../views/demo.vue')
    },
    //

]

const router = new VueRouter({
    routes
})

export default router
